//package com.springcloudemo.ms.config;
//
//import com.netflix.appinfo.ApplicationInfoManager;
//import com.netflix.discovery.AbstractDiscoveryClientOptionalArgs;
//import com.netflix.discovery.EurekaClient;
//import com.netflix.discovery.EurekaClientConfig;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class EurekaConfig {
//
//    @Bean
//    public AbstractDiscoveryClientOptionalArgs abstractDiscoveryClientOptionalArgs() {
//        return new AbstractDiscoveryClientOptionalArgs() {};
//    }
//
//    @Bean
//    public EurekaClient eurekaClient(ApplicationInfoManager applicationInfoManager,
//                                     EurekaClientConfig config) {
//        return new DiscoveryClient(applicationInfoManager, config);
//    }
//}
